package com.ax.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TabContents entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TabContents", schema = "dbo", catalog = "uploadDown")
public class TabContents implements java.io.Serializable {

	// Fields

	private Integer cid;
	private TabTypes tabTypes;
	private String ctitle;
	private String csource;
	private String cauthor;
	private String cviews;
	private String cdownNum;
	private String csoftSize;
	private String csoftImpower;
	private String csoftEnvironment;
	private String ckeywords;
	private String ccontent;
	private Timestamp ccreatetime;
	private String csoftLanguage;
	private String csoftRank;
	private String cdownPath;
	private String cpush;
	private String csoftPlugin;

	// Constructors

	/** default constructor */
	public TabContents() {
	}

	/** minimal constructor */
	public TabContents(TabTypes tabTypes, String ctitle, Timestamp ccreatetime) {
		this.tabTypes = tabTypes;
		this.ctitle = ctitle;
		this.ccreatetime = ccreatetime;
	}

	/** full constructor */
	public TabContents(TabTypes tabTypes, String ctitle, String csource,
			String cauthor, String cviews, String cdownNum, String csoftSize,
			String csoftImpower, String csoftEnvironment, String ckeywords,
			String ccontent, Timestamp ccreatetime, String csoftLanguage,
			String csoftRank, String cdownPath, String cpush, String csoftPlugin) {
		this.tabTypes = tabTypes;
		this.ctitle = ctitle;
		this.csource = csource;
		this.cauthor = cauthor;
		this.cviews = cviews;
		this.cdownNum = cdownNum;
		this.csoftSize = csoftSize;
		this.csoftImpower = csoftImpower;
		this.csoftEnvironment = csoftEnvironment;
		this.ckeywords = ckeywords;
		this.ccontent = ccontent;
		this.ccreatetime = ccreatetime;
		this.csoftLanguage = csoftLanguage;
		this.csoftRank = csoftRank;
		this.cdownPath = cdownPath;
		this.cpush = cpush;
		this.csoftPlugin = csoftPlugin;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "CId", unique = true, nullable = false)
	public Integer getCid() {
		return this.cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "CTypes_ID", nullable = false)
	public TabTypes getTabTypes() {
		return this.tabTypes;
	}

	public void setTabTypes(TabTypes tabTypes) {
		this.tabTypes = tabTypes;
	}

	@Column(name = "CTitle", nullable = false, length = 50)
	public String getCtitle() {
		return this.ctitle;
	}

	public void setCtitle(String ctitle) {
		this.ctitle = ctitle;
	}

	@Column(name = "CSource", length = 50)
	public String getCsource() {
		return this.csource;
	}

	public void setCsource(String csource) {
		this.csource = csource;
	}

	@Column(name = "CAuthor", length = 50)
	public String getCauthor() {
		return this.cauthor;
	}

	public void setCauthor(String cauthor) {
		this.cauthor = cauthor;
	}

	@Column(name = "CViews", length = 50)
	public String getCviews() {
		return this.cviews;
	}

	public void setCviews(String cviews) {
		this.cviews = cviews;
	}

	@Column(name = "CDownNum", length = 50)
	public String getCdownNum() {
		return this.cdownNum;
	}

	public void setCdownNum(String cdownNum) {
		this.cdownNum = cdownNum;
	}

	@Column(name = "CSoftSize", length = 20)
	public String getCsoftSize() {
		return this.csoftSize;
	}

	public void setCsoftSize(String csoftSize) {
		this.csoftSize = csoftSize;
	}

	@Column(name = "CSoftImpower", length = 50)
	public String getCsoftImpower() {
		return this.csoftImpower;
	}

	public void setCsoftImpower(String csoftImpower) {
		this.csoftImpower = csoftImpower;
	}

	@Column(name = "CSoftEnvironment")
	public String getCsoftEnvironment() {
		return this.csoftEnvironment;
	}

	public void setCsoftEnvironment(String csoftEnvironment) {
		this.csoftEnvironment = csoftEnvironment;
	}

	@Column(name = "CKeywords", length = 50)
	public String getCkeywords() {
		return this.ckeywords;
	}

	public void setCkeywords(String ckeywords) {
		this.ckeywords = ckeywords;
	}

	@Column(name = "CContent")
	public String getCcontent() {
		return this.ccontent;
	}

	public void setCcontent(String ccontent) {
		this.ccontent = ccontent;
	}

	@Column(name = "CCreatetime", nullable = false, length = 23)
	public Timestamp getCcreatetime() {
		return this.ccreatetime;
	}

	public void setCcreatetime(Timestamp ccreatetime) {
		this.ccreatetime = ccreatetime;
	}

	@Column(name = "CSoftLanguage", length = 50)
	public String getCsoftLanguage() {
		return this.csoftLanguage;
	}

	public void setCsoftLanguage(String csoftLanguage) {
		this.csoftLanguage = csoftLanguage;
	}

	@Column(name = "CSoftRank", length = 10)
	public String getCsoftRank() {
		return this.csoftRank;
	}

	public void setCsoftRank(String csoftRank) {
		this.csoftRank = csoftRank;
	}

	@Column(name = "CDownPath")
	public String getCdownPath() {
		return this.cdownPath;
	}

	public void setCdownPath(String cdownPath) {
		this.cdownPath = cdownPath;
	}

	@Column(name = "Cpush", length = 50)
	public String getCpush() {
		return this.cpush;
	}

	public void setCpush(String cpush) {
		this.cpush = cpush;
	}

	@Column(name = "CSoftPlugin", length = 50)
	public String getCsoftPlugin() {
		return this.csoftPlugin;
	}

	public void setCsoftPlugin(String csoftPlugin) {
		this.csoftPlugin = csoftPlugin;
	}

}